﻿namespace CommonLibrary.Web
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Web;

    public static class HttpContextExtensions
    {
        public static bool AlertErrorMessage(this HttpResponseBase response, string message)
        {
            response.Write(string.Format(@"<script type=""text/javascript"">alert('{0}');</script>", message));
            return false;
        }
    }
}
